<?php echo $__env->make("template::My.views.header", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<link href="/mycms/cms/theme/My/assets/css/honor.css?time=<?php echo e(time()); ?>" rel="stylesheet">
</head>
<body class="bg-gradient-to-b from-[#EAF0FF] to-[#F9F9F9]  min-h-full">
   <div class=" mx-auto w-9/12 text-[15px] rounded-3xl  bg-[#FCBA58]  mt-5   text-white bg-[length:17px_17px] bg-no-repeat leading-[28px] text-center bg-[center_left_35px] h-[28px]" style="background-image: url('/mycms/cms/theme/My/assets/img/x.png') "><span class="">获得相应积分方可解锁证书</span>
   </div>
     <?php $__currentLoopData = $list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
     <div class="container mx-auto w-11/12 bg-white mt-16  rounded-2xl h-auto ">
        <div class="rounded-t-2xl bg-cover h-[166px]  " style="background-image: url('<?php echo e($v->img); ?>')">
            <?php if($v->point>$point): ?><div class="w-full  h-[166px] bg-black opacity-50  p-20 rounded-t-2xl  "  onclick="model_show()"><center><img src="/mycms/cms/theme/My/assets/img/25.png" class="w-10 h-10" /></center></div><?php endif; ?>
        </div>
        <div class="h-auto  px-[16px] pt-[23px] flex flex-row bg-white" >
            <div class=" basis-8/12 ">
                <p class=" text-[#0B0B0B] font-['PingFang']  font-bold text-[17px]"><?php echo e($v->title); ?></p>
                <p class="text-[#666666] font-['PingFang'] font-medium text-[12px]"></p>  
            </div>
            <div class=" font-['PingFang']   text-[#FF8E00]  basis-4/12" > 
               <div class="h-[28px] w-full   bg-cover pl-9 font-bold text-[12px] leading-[28px] " style="background-image: url('/mycms/cms/theme/My/assets/img/26.png')"> 能量≥<?php echo e($v->point); ?></div>
            </div> 
        </div>
        <div class="h-[62px] py-[20px] flex flex-row  space-x-6 bg-white  rounded-2xl"  >
             <?php if($v->point>$point): ?>
            <div class=" basis-6/12 text-right " onclick="model_show()">
                <button  class="bg-[#FBBB32]   rounded-full shadow-xl shadow-yellow-400/20  w-[86px]  h-[34px]  text-white font-bold text-[14.6px]">电子版</button>
            </div>
            <div class="  basis-6/12" onclick="model_show()" > 
                <button  class="bg-[#3368FD]   rounded-full shadow-xl shadow-blue-400/20   w-[86px]  h-[34px]  text-white font-bold text-[14.6px] ">收藏版</button>
            </div>
            <?php else: ?>
            <div class=" basis-6/12 text-right " onclick="model2_show()">
                <button  class="bg-[#FBBB32]   rounded-full shadow-xl shadow-yellow-400/20  w-[86px]  h-[34px]  text-white font-bold text-[14.6px]">电子版</button>
            </div>
            <div class="  basis-6/12" onclick="model2_show()" > 
                <button  class="bg-[#3368FD]   rounded-full shadow-xl shadow-blue-400/20   w-[86px]  h-[34px]  text-white font-bold text-[14.6px] ">收藏版</button>
            </div>
            <?php endif; ?>
        </div>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
   <div id='model' class="h-screen flex items-center justify-center bg-black bg-opacity-50 z-50    left-0 right-0 top-0 fixed   hidden">
        <div class="container mx-auto bg-white rounded-[33px] shadow-lg modal  w-[304px]  h-[305px] relative" >
            <div class="flex flex-row items-end justify-end h-[33px]" >
                <div class="w-[25px] h-[25px] mr-5 text-right"  onclick="model_hidden()"><img src="/mycms/cms/theme/My/assets/img/47.png" class="w-[25px] h-[25px]"></div>
            </div>
            <div class="flex flex-row items-center justify-center " >
                <div class="items-center justify-center"><center><img src="/mycms/cms/theme/My/assets/img/50.png" class="w-[62px] h-[62px] "></center></div>
            </div>
            <div class="text-black  text-center mt-[28px]">
                <p class="text-[18px] font-bold text-[#222222] ">当前证书还未解锁哦</p>
                <p class="text-[14px] text-[#333333]">请获取足够积分再解锁</p>
            </div>
            <div class="flex flex-row items-center justify-center mt-[75px] ">
                <button  class="bg-[#3368FD]   rounded-full shadow-xl shadow-blue-400/30 w-[142px]  h-[45px]  text-white font-bold text-[19px] leading-[19px]" onclick="gotask()" >去解锁</button>
            </div>
           
        </div>
    </div>
    <div id='model2' class="h-screen flex items-center justify-center bg-black bg-opacity-50 z-50    left-0 right-0 top-0 fixed  hidden ">
        <div class="container mx-auto bg-white rounded-[33px] shadow-lg modal  w-[304px]  h-[305px] relative" >
            <div class="flex flex-row items-end justify-end h-[33px]" >
                <div class="w-[25px] h-[25px] mr-5 text-right" onclick="model2_hidden()"><img src="/mycms/cms/theme/My/assets/img/47.png" class="w-[25px] h-[25px]"></div>
            </div>
            <div class="flex flex-row items-center justify-center " >
                <div class="items-center justify-center"><center><img src="/mycms/cms/theme/My/assets/img/24.png" class="w-[62px] h-[62px] "></center></div>
            </div>
            <div class="text-black  text-center mt-[28px] ">
                <p class="text-[18px] font-bold text-[#222222] pb-[21px]">当前活动正在进行中...</p>
                <p class="text-[14px] font-medium  text-[#333333]">活动结束后统一颁发证书<br>领取时间 2022年9月20日</p>
            </div>
            <div class="flex flex-row items-center justify-center mt-[35px] ">
                <button  class="bg-[#3368FD]   rounded-full shadow-xl shadow-blue-400/30 w-[142px]  h-[45px]  text-white font-bold text-[19px] leading-[19px]" onclick="gotask()" >去解锁</button>
            </div>
           
        </div>
    </div>
<script>
var id=0;
var id2=0;
function model_show($id){
        id=$id;
        var mobile = $('#model').removeClass('hidden');
        
}
function model_hidden(){
        var mobile = $('#model').addClass('hidden');
        
}

function model2_show($id){
        id2=$id;
        var mobile = $('#model2').removeClass('hidden');
        
}
function model2_hidden(){
        var mobile = $('#model2').addClass('hidden');
}

function gotask(id){
         location.href = "<?php echo e(route('user.task',['aid'=>$id])); ?>";     
}

function tozheng($id){
        if(id!=0){
         location.href = '/zheng/'+id;     
        }
}
</script>
<?php echo $__env->make("template::My.views._footer", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/mycms/Template/My/views/zheng.blade.php ENDPATH**/ ?>